package com.shared.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;

import java.util.Date;
import java.io.Serializable;

/**
 * (PGoods)实体类
 *
 * @author makejava
 * @since 2020-06-16 19:57:14
 */
@ApiModel(value = "PGoods", description = "商品信息")
public class PGoods implements Serializable {
    private static final long serialVersionUID = -61641105369750568L;

    @ApiModelProperty(value = "[自动增长]商品主键")
    private Integer id;
    /**
     * 标题
     */
    @ApiModelProperty(value = "[必填]商品主题")
    private String title;
    /**
     * 子标题
     */
    @ApiModelProperty(value = "[必填]商品副主题")
    private String subtitle;
    /**
     * 价格
     */
    @ApiModelProperty(value = "[必填]商品价格")
    private Double price;
    /**
     * 图片
     */
    @ApiModelProperty(value = "[必填]商品图片")
    private String pic;
    /**
     * 库存
     */
    @ApiModelProperty(value = "[必填]商品库存")
    private Integer stock;
    /**
     * 销量
     */
    @ApiModelProperty(value = "[必填]商品销量")
    private Integer sales;
    /**
     * 上架时间
     */
    @ApiModelProperty(value = "[必填]商品上架时间")
    private Date starttime;
    /**
     * 种类：0->漆面养护；1->安全自驾；2->系统养护
     */
    @ApiModelProperty(value = "[必填]商品种类；0、漆面养护，1、安全自驾，2、系统养护")
    private Integer type;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

}